package com.mybatis.plus.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatis.plus.entity.UserEntity;
import com.mybatis.plus.mapper.UserMapper;
import com.mybatis.plus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements UserService {

    @Autowired
    UserMapper userMapper;

    /**
     * 自己额外扩展的service，用注解方式测试
     */
    @Override
    public String kuozhan() {
        return userMapper.kuozhan();
    }

    @Override
    public String kuozhan2() {
        return userMapper.kuozhan2();
    }

    @Override
    public IPage<UserEntity> pageList(Page<UserEntity> page, LambdaQueryWrapper<UserEntity> queryWrapper) {
        return userMapper.selectPage(page,queryWrapper);
    }
}
